
package com.tools.cleanmaster.ui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.tools.cleanmaster.R;


@SuppressWarnings("static-access")
public class LoadingInsideLayout extends LinearLayout {
    private TextView mMsgBelowView;

    public LoadingInsideLayout(Context context) {
        super(context);
    }

    public LoadingInsideLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        mMsgBelowView = findViewById(R.id.msg_below);
    }

    public void updateProgress(int percent) {
        updateBelowMessage(String.valueOf(percent) + "%");
    }

    public void updateBelowMessage(CharSequence msg) {
        mMsgBelowView.setText(msg);
    }
}
